package top.mh.mybatis.executor;

import top.mh.mybatis.pojo.Configuration;
import top.mh.mybatis.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @author mh
 * @version 1.0
 * @description sql执行器
 * @since 2024/2/2 16:26
 */
public interface Executor {

    // 调用jdbc执行查询操作
    <T> List<T> query(Configuration configuration, MappedStatement mappedStatement, Object param) throws Exception;

    // 释放资源
    void close();
}
